package com.dhecp.project.business.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.dhecp.core.genericDao.GenericDao;
import com.dhecp.project.business.domain.ProductGNumber;

/**
 * 型号条码记录 DAO层
 * @author DH-Xxj
 * @version 2021年3月30日
 */
public interface ProductGNumberMapper extends GenericDao<ProductGNumber, String>{

	/**
	 * 查询型号条码信息
	 * @param parems
	 * @return List - ProductGNumber
	 * @author DH-Xxj
	 */
	List<ProductGNumber> findProductGNumber(Map<String, Object> params);
	
	/**
     * 通过guid查询单条记录
     * @param guid
     * @return 实体 ProductGNumber
	 * @author DH-Xxj
	 */
	ProductGNumber findProductGNumberByGuid(@Param("guid") String guid);
	
	/**
	 * 新增型号条码信息
	 * @param ProductGNumber
	 * @return
	 * @author DH-Xxj
	 */
	int insertProductGNumber(ProductGNumber productGNumber);

	/**
	 * 新增/更新型号条码库信息
	 * @param productGNumber
	 * @return
	 * @author DH-Xxj
	 */
	int saveProductGNumber(ProductGNumber productGNumber);

}
